<?php
// +----------------------------
// | Created by PhpStorm
// +----------------------------
// | Author: YnnSon
// +----------------------------
namespace app\api\model;

/**
 * 承检车型
 * Class Vehicle
 * @package app\api\model
 */
class Vehicle extends BaseModel
{
    /**
     * @Desc 首页获取车型
     * @return bool|false|\PDOStatement|string|\think\Collection
     */
    public static function getVehicle()
    {
        return self::all();
    }

    /**
     * @Desc 获取检车站承检车型
     *
     * @param string $vehicle_ids
     *
     * @return Vehicle[]|false
     */
    public static function getVehicleByVehicleIds($vehicle_ids)
    {
        return (new self)->field('id, title')->whereIn('id', $vehicle_ids)->select();
    }
}